package cn.stylefeng.guns.modular.basic.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.basic.entity.BasicAddress;
import cn.stylefeng.guns.modular.basic.model.params.BasicAddressParam;
import cn.stylefeng.guns.modular.basic.model.result.BasicAddressResult;
import cn.stylefeng.roses.kernel.model.validator.BaseValidatingParam;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 往来地址表 服务类
 * </p>
 *
 * @author zhucx
 * @since 2019-07-24
 */
public interface BasicAddressService extends IService<BasicAddress> {

    /**
     * 新增
     *
     * @author zhucx
     * @Date 2019-07-24
     */
    void add(BasicAddressParam param);

    /**
     * 删除
     *
     * @author zhucx
     * @Date 2019-07-24
     */
    void delete(BasicAddressParam param);

    /**
     * 更新
     *
     * @author zhucx
     * @Date 2019-07-24
     */
    void update(BasicAddressParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhucx
     * @Date 2019-07-24
     */
    BasicAddressResult findBySpec(BasicAddressParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zhucx
     * @Date 2019-07-24
     */
    List<BasicAddressResult> findListBySpec(BasicAddressParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhucx
     * @Date 2019-07-24
     */
     LayuiPageInfo findPageBySpec(BasicAddressParam param,String condition);

    List<BaseValidatingParam> mapAddress();
}
